package com.ailink.app;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/10/26
 */
@RestController
@RequestMapping("/log4j2")
public class Log4j2 {

    private final Log logger = LogFactory.getLog(this.getClass());

    @RequestMapping("test")
    public String test() {
        logger.error("test");
        logger.info("test");
        logger.warn("test");
        return "test";
    }
}
